<div class="nav-sub w1180">
	<ul class="zoom">
		<li><a href="/crm/org/list">商户列表</a></li>
<!-- 		<li><a class="on" href="/crm/org/catelog-list">商户类目</a></li> -->
		<li><a href="/crm/org/cate-list">商户类目</a></li>
	</ul>
</div>
<div class="main-ct w1180">
	<div class="top-bar">
		<div class="custom-search">
			<label>商户类目名称<input type="text" class="tp-txt"  id="catalog_name"></label>
			<a href="javascript:search();" class="btn-cs btn-search ml5">查 询</a>
<!-- 			<a href="javascript:;" class="btn-cs btn-green ml5">输出报表</a> -->
		</div>
		
		<a class="btn-cs btn-fillet btn-green" href="/crm/org/add-catelog">新增商户类型</a>
	</div>
<div id="list-table"></div>
</div>

<script type="text/javascript">
    var catalog_name = $("#catalog_name").val();
    var page = 1;
    
    $(document).ready(function(){
    	ajaxListTable();
    });
    
    function search(){
    	catalog_name = $("#catalog_name").val();
    
    	ajaxListTable();
    }
    
    function paginator(page_no) {
    	page = page_no;
    	ajaxListTable();
    }
    
    function ajaxListTable(){
    	$.ajax({
            type: "post",
            url: "<?php echo $this->url('crm/org',
                array('action'=>'ajax-catelog-list'));?>",
            dataType:'html',
            data: { "catalog_name": catalog_name,
    				"page":page
    		},
            cache: false,
            timeout:10000, 
            error: function(){
              	 alert('请求超时，请重新操作');
               	 isPost = false;
                 return false; 
             }, 
            success: function(html){
            	$("#list-table").html(html);
            }
        });
    }

</script>